package com.iursp.utils;

import com.iursp.domain.result.ExceptionMsg;
import com.iursp.domain.result.Response;
import com.iursp.domain.result.ResponseData;

/**
 * 
 * @ClassName:  ResultUtils   
 * @Description: 返回值  
 * @author: ruiwu
 * @date:   2018年6月29日 下午2:54:23   
 *
 */
public class ResultUtils {
	
	public static Response result(ExceptionMsg msg){
    	return new Response(msg);
    }
	
	public static Response result(String rspCode, String rspMsg){
    	return new Response(rspCode,rspMsg);
    }
	
	public static ResponseData resultData(ExceptionMsg msg){
    	return new ResponseData(msg);
    }
	
	public static ResponseData resultData(ExceptionMsg msg, Object data){
    	return new ResponseData(msg,data);
    }

}
